// routes/index.js
const Router = require('koa-router');
const userController = require('../controllers/userController');

const router = new Router({
  prefix: '/api', // 可选
});

router.get('/users', userController.getUsers);
router.post('/users', userController.addUser);

module.exports = router;
